package com.zebra.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.zebra.base.po.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author 销魂钉
 * @since 2020-06-10
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_area")
@ApiModel(value="SysArea对象", description="")
public class SysArea extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "机构名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "区域编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "区域类型（1：国家；2：省份、直辖市；3：地市；4：区县）")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "父级编号")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty(value = "所有父级编号")
    @TableField("parent_ids")
    private String parentIds;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;


}
